package com.huizhan.web.model;

import javax.persistence.*;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.*;
import io.swagger.annotations.*;
import java.util.Date;

/**
 * @Description 项目停车 
 * @Author  yanluping@outlook.com
 * @Date 2020-01-09 19:15:53 
 */
@JsonIgnoreProperties({"hibernateLazyInitializer","handler"})
@Entity
@ApiModel(value =  "项目停车")
@Table ( name ="Project_Car")
public class ProjectCar  implements Serializable {

	private static final long serialVersionUID =  1078906062472157029L;

	/**
	 * 车牌ID
	 */
	@ApiModelProperty(value = "车牌ID")
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
   	@Column(name = "Project_Car_Id" )
	private Long projectCarId;

	/**
	 * 项目ID
	 */
	@ApiModelProperty(value = "项目ID")
   	@Column(name = "Project_Id" )
	private String projectId;

	/**
	 * 姓名
	 */
	@ApiModelProperty(value = "姓名")
   	@Column(name = "Name" )
	private String name;

	/**
	 * 车牌
	 */
	@ApiModelProperty(value = "车牌")
   	@Column(name = "CarNo" )
	private String carNo;

	/**
	 * 手机
	 */
	@ApiModelProperty(value = "手机")
   	@Column(name = "Phone" )
	private String phone;

	/**
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@ApiModelProperty(value = "创建时间",example = "2018-10-01 12:18:48")
   	@Column(name = "CreateDate" )
	private Date createDate;

	public Long getProjectCarId() {
		return this.projectCarId;
	}

	public void setProjectCarId(Long projectCarId) {
		this.projectCarId = projectCarId;
	}

	public String getProjectId() {
		return this.projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCarNo() {
		return this.carNo;
	}

	public void setCarNo(String carNo) {
		this.carNo = carNo;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Override
	public String toString() {
		return "{" +
					"projectCarId='" + projectCarId + '\'' +
					"projectId='" + projectId + '\'' +
					"name='" + name + '\'' +
					"carNo='" + carNo + '\'' +
					"phone='" + phone + '\'' +
					"createDate='" + createDate + '\'' +
				'}';
	}

}
